#pragma warning(disable:4996)
#include<stdio.h>
int main()
{
	int a = 3;
	//3-0000 0011-补码
	//5-0000 0101-补码

  //&   0000 0001--1  
  //|   0000 0111--7 
  //^   0000 0110--6
	printf("%d %d %d\n", a & 5, a | 5, a ^ 5);
	return 0;
}